<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
    xmlns:p="http://primefaces.org/ui"
      xmlns:composite="http://java.sun.com/jsf/composite">
    <h:head>
        <title></title>
    </h:head>
    <h:body>
        <composite:interface>
            <composite:attribute name="application" required="true"/>
            <composite:attribute name="visible" default="false"/>
        </composite:interface>
        
        <composite:implementation>
            <p:dialog id="appDialogID" closeOnEscape="true" visible="#{cc.attrs.visible}" resizable="false" hideEffect="fold" showEffect="fold" header="#{cc.attrs.application}" modal="false" widgetVar="appDialog">
                <table>
                    <tr>
                        <td colspan="2">
                            <h:outputText value="#{cc.attrs.description}"/>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            <h:outputText value="Skinuta #{cc.attrs.application.downloads} puta."/>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <p:graphicImage value="/imageservlet?appId=#{cc.attrs.application.applicationId}&amp;image=1"/>
                        </td>
                        <td>
                            <p:graphicImage value="/imageservlet?appId=#{cc.attrs.application.applicationId}&amp;image=2"/>
                        </td>
                    </tr>
                </table>
            </p:dialog>
        </composite:implementation>
    </h:body>
</html>

